import { createWebHistory,createRouter}  from 'vue-router'
const routes = [
    {
        path:'/',
        redirect:'/home'
    },
    {
        path:'/login',
        name:'login',
        component: () => import('@/views/login.vue')
    },
    {
        path:'/home',
        name:'home',
        component: () => import('@/views/home.vue')
    },
    {
        path: '/data',
        name: 'data',
        component: () => import('@/views/data.vue')
      },
      {
        path: '/setting',
        name: 'setting',
        component: () => import('@/views/setting.vue')
      },
     {
        path: '/detail',
        name:'detail',
        component: () => import('@/views/detail.vue')
      },
     
 
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})
export default router